Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add SetStateAction & PropsWithoutRef types to compat #4132

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

rschristian
Copy link
Member

Closes #4131
Closes #4124


React's SetStateAction vs our StateUpdater. I elected to replace StateUpdater's export as it was never a type offered by React -- I believe this was simply a mistake that we missed, it always should've been re-exported as SetStateAction. If the breaking change is a concern I'll be happy to revert but I don't imagine it's seeing any use.

React's PropsWithoutRef is a bit more complex than what we've been using (as it's used for forwardRef's types), but seeing as how we have no issues in our tracker as far as I can tell, I chose to keep using our (perhaps naive) version for now. Can change if desired though.

@coveralls
Copy link

Coverage Status

coverage: 99.294%. remained the same when pulling 8726167 on types/props-without-ref--set-state-action into 7748dcb on main.

@JoviDeCroock JoviDeCroock merged commit f4093cb into main Sep 15, 2023
3 checks passed
@JoviDeCroock JoviDeCroock deleted the types/props-without-ref--set-state-action branch September 15, 2023 12:15
@JoviDeCroock JoviDeCroock mentioned this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants